package ex2.LinkedBinaryTree;

public class LinkedBinarySearchTreeTester {
    public static void main(String[] args) {
        LinkedBinarySearchTree tree = new LinkedBinarySearchTree(10);
        tree.addElement(15);
        tree.addElement(13);
        tree.addElement(5);
        tree.addElement(7);
        tree.addElement(21);
        tree.addElement(1);
        System.out.println(tree.toString());

        System.out.println("删除最大值：");
        tree.removeMax();
        System.out.println("输出树：");
        System.out.println(tree.toString());

        System.out.println("找到最小值：" + tree.findMin());
        System.out.println("找到最大值：" + tree.findMax());

    }
}
